// const path = require('path')
const fs = require('fs')

const router = require('express').Router()

let dirs = fs.readdirSync('./router/routes')
dirs.forEach(filename => {
  router.use(require('./routes/' + filename))
})

// router.use(require('./routes/user'))
// router.use(require('./routes/news'))

module.exports = router